var number = Math.random();// 返回0-1之间随机数
console.log(number);
var number1 = Math.max(2,0.2222,3);//返回最大值
console.log(number1);
var min = Math.min(1,2);//返回最小值
console.log(min);
var number2 = Math.round(4.6);//四舍五入
console.log(number2);


function dj() {
   window.open();//点击按钮会打开新的窗口
  //window.moveTo(23,231);
}

setTimeout("alert('5 秒！')",5000);//5秒后会自动弹出一个5秒的窗口
document.cookie='wc';
var cookie = document.cookie;
console.log(cookie);
setTimeout("alert('你个大头猪')",3000);
